import base64

str=input('输入密码：')
str2=str[::-1]
str=str2+'GXU!@#'+str+'gxu'
str=str.encode('utf-8')
mm=base64.b64encode(str)
#kk=str.decode('utf-8')
#k=[]
#for i in range(len(kk)):
#    k.append(chr(ord(kk[i])^ord('A')))

#y=str(''.join(k))
t=mm.decode('utf-8')
print(t)


"""
t=t.encode('utf-8')
str=base64.b64decode(mm)
str=str.decode('utf-8')
x=len(str)
x=int((x-9)/2)
result=''
for i in range(x):
    result+=str[i]
print(result[::-1])
"""
